package ComputerWork;

public abstract class Board {
	private String name;
	private int speed;
	private double price;
	
	public Board(String name, int speed, double price) {
		this.name = name;
		this.speed = speed;
		this.price = price;
	}

	public String getName() {
		return name;
	}
	
	public int getSpeed() {
		return speed;
	}
	
	public double getPrice() {
		return price;
	}
	
	public abstract void work();
	
	public void digital() {
		System.out.println(name + ' ' + speed + ' ' + price);
	}
}
